@extends('admin.layout')

@section('content_header')
	入力项目管理
@stop

@section('content')
<p><a href="{{route('admin.item.option.create', $item)}}" class="btn btn-info">添加</a></p>
    <table class="table table-bordered">
    	
    	<thead>
    		<th>選択項目名</th>
    		<th>選択値</th>
    		<th>スコアリング値</th>
    		<th></th>
    	</thead>
    	<tbody>
    		
    		@foreach($datas as $v)
    			<tr>
    				
    				<td>{{ $v->option_name }}</td>
    				<td>{{ $v->option }}</td>
    				<td>{{ $v->rate }}</td>
    				<td class="d-flex justify-content-around">
    					<a href="{{route('admin.option.edit', $v)}}" class="far fa-edit text-secondary border-0"></a>
    					<a href="javascript:;" class="far fa-trash-alt text-secondary" data-url="{{route('admin.option.destroy', $v)}}"></a>
    				</td>
    			</tr>
    		@endforeach
    	</tbody>
    </table>
@stop